package com.britecloud.cloud.web;

import com.britecloud.cloud.service.SampleRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class SampleController {

    @Autowired
    private SampleRemoteService sampleRemoteService;

    @RequestMapping(value = "/hello")
    String hello(HttpServletRequest request) {

        return sampleRemoteService.getMessage();
    }
}